package com.ruoyi.payMent.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 退款记录对象 refunds
 * 
 * @author ruoyi
 * @date 2025-06-24
 */
public class Refunds extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long refundsId;

    /** 支付记录主键 */
    @Excel(name = "支付记录主键")
    private Long payId;

    /** 退款金额 */
    @Excel(name = "退款金额")
    private Long refundAmount;

    /** 退款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date refundTime;

    /** 退款原因 */
    @Excel(name = "退款原因")
    private String refundReason;

    /** 退费状态 */
    @Excel(name = "退费状态")
    private Long status;

    /** 退费操作人员Id */
    @Excel(name = "退费操作人员Id")
    private Long operatorId;

    /** 退费方式 */
    @Excel(name = "退费方式")
    private Long refundType;

    public void setRefundsId(Long refundsId) 
    {
        this.refundsId = refundsId;
    }

    public Long getRefundsId() 
    {
        return refundsId;
    }

    public void setPayId(Long payId) 
    {
        this.payId = payId;
    }

    public Long getPayId() 
    {
        return payId;
    }

    public void setRefundAmount(Long refundAmount) 
    {
        this.refundAmount = refundAmount;
    }

    public Long getRefundAmount() 
    {
        return refundAmount;
    }

    public void setRefundTime(Date refundTime) 
    {
        this.refundTime = refundTime;
    }

    public Date getRefundTime() 
    {
        return refundTime;
    }

    public void setRefundReason(String refundReason) 
    {
        this.refundReason = refundReason;
    }

    public String getRefundReason() 
    {
        return refundReason;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setOperatorId(Long operatorId) 
    {
        this.operatorId = operatorId;
    }

    public Long getOperatorId() 
    {
        return operatorId;
    }

    public void setRefundType(Long refundType) 
    {
        this.refundType = refundType;
    }

    public Long getRefundType() 
    {
        return refundType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("refundsId", getRefundsId())
            .append("payId", getPayId())
            .append("refundAmount", getRefundAmount())
            .append("refundTime", getRefundTime())
            .append("refundReason", getRefundReason())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("operatorId", getOperatorId())
            .append("createTime", getCreateTime())
            .append("refundType", getRefundType())
            .toString();
    }
}
